Skip to content

Adding files from Create Block Theme - #5

Merged
yasminosten13 merged 1 commit into
mainfrom
feature/updated-theme.json
Mar 4, 2026
Merged

Adding files from Create Block Theme#5
yasminosten13 merged 1 commit into
mainfrom
feature/updated-theme.json

Conversation

@yasminosten13

@yasminosten13 yasminosten13 commented Mar 4, 2026

Copy link
Copy Markdown
Collaborator

Summary by Sourcery

Update theme templates, header/footer, and styling to align the IndigoTree 2025 theme with Berkhamsted Counselling design and shared components.

Enhancements:

  • Introduce a reusable breadcrumbs block pattern and replace direct Yoast breadcrumbs usage across templates with this pattern.
  • Adjust header layout to use a simple text logo link, Max Mega Menu primary navigation, and a prominent “Book a call” button while removing the search and secondary navigation bar.
  • Refresh footer structure and content to match Berkhamsted Counselling branding, including updated headings, quick links, and social profiles.
  • Standardize archive, home, search, single, and page templates to use a consistent 1250px content width and primary-colored banner covers with simplified overlays.
  • Bind post date fields via block bindings in post listings and single templates for more robust date rendering.
  • Add custom Gravity Forms button styling to match the site’s primary brand color.

@sourcery-ai

sourcery-ai Bot commented Mar 4, 2026

Copy link
Copy Markdown

Reviewer's Guide

Updates the IndigoTree 2025 block theme templates to match a new Create Block Theme export: reworks header/footer structure and content, introduces a reusable breadcrumbs pattern, normalises archive/search/home/single layouts and queries, and adds custom Gravity Forms button styling.

Flow diagram for updated templates and breadcrumbs pattern usage

flowchart TD
  subgraph theme_parts[Theme_structure]
    direction TB
    header[template_part_header]
    footer[template_part_footer]
    breadcrumbs_pattern[pattern_breadcrumbs]
  end

  subgraph templates[Core_templates]
    direction TB
    tpl_index[index_html]
    tpl_page[page_html]
    tpl_page_home[page_home_html]
    tpl_home[home_html]
    tpl_archive[archive_html]
    tpl_search[search_html]
    tpl_single[single_html]
    tpl_404[404_html]
  end

  subgraph shared_layout[Shared_layout_features]
    direction TB
    main_content_width[contentSize_1250px_on_index_page_page_home_home_archive_search]
    primary_cover_banners[primary_overlay_covers_on_home_archive_search_single]
    post_queries[post_queries_perPage_10_with_bound_post_date]
  end

  user_request[User_HTTP_request]
  wp_hierarchy[WordPress_template_hierarchy]

  user_request --> wp_hierarchy --> templates

  %% header and footer usage
  templates --> header
  templates --> footer

  %% breadcrumbs pattern usage
  tpl_404 --> breadcrumbs_pattern
  tpl_search --> breadcrumbs_pattern
  tpl_archive --> breadcrumbs_pattern
  tpl_home --> breadcrumbs_pattern
  tpl_single --> breadcrumbs_pattern

  %% layout and query normalization
  templates --> shared_layout
Loading

File-Level Changes

Change Details Files
Refactors footer layout and content to match new site branding and simplify columns and social links.
  • Changes footer background color from black to primary and adds top margin via spacing style.
  • Replaces generic heading and link copy with Berkhamsted Counselling branding and a Quick Links column.
  • Simplifies column structure, removing redundant nested columns while keeping copyright, credits, and social icons (with YouTube removed).
wp-content/themes/indigotree-theme-2025/parts/footer.html
Simplifies and customises the header to new branding and navigation requirements.
  • Removes secondary nav/search bar contents from the sticky header top bar.
  • Replaces site logo block with a text link to the Berkhamsted Counselling page.
  • Keeps primary navigation via Max Mega Menu and replaces generic CTA button label with “Book a call”.
  • Cleans up group nesting/spacing while preserving sticky positioning and shadow.
wp-content/themes/indigotree-theme-2025/parts/header.html
Introduces a reusable breadcrumbs block pattern and switches templates to use it instead of inline Yoast breadcrumbs or a previous block reference.
  • Adds a new breadcrumbs pattern that wraps Yoast SEO breadcrumbs in a padded group block.
  • Replaces direct yoast-seo/breadcrumbs usage with the new pattern in 404, search, archive, home, and single templates.
  • Replaces a custom block reference in the single template with the new breadcrumbs pattern.
wp-content/themes/indigotree-theme-2025/patterns/breadcrumbs.php
wp-content/themes/indigotree-theme-2025/templates/404.html
wp-content/themes/indigotree-theme-2025/templates/search.html
wp-content/themes/indigotree-theme-2025/templates/archive.html
wp-content/themes/indigotree-theme-2025/templates/home.html
wp-content/themes/indigotree-theme-2025/templates/single.html
Aligns archive, search, home, single, index, and page templates with the new layout and query settings from Create Block Theme.
  • Sets constrained layout contentSize to 1250px on multiple templates and page/post-content wrappers.
  • Changes cover block overlays from gradient primary-to-black to solid primary and adjusts banner min-height where used.
  • Reduces posts per page in archive/home/search queries from 12 to 10.
  • Adds explicit datetime bindings to post-date blocks so the date attribute is sourced from core/post-data.
  • Removes the isClickable attribute on search result groups and adds fontFamily configuration to query pagination.
  • Updates 404 template to use core Search block instead of SearchWP form and updates contact URL from /contact-us/ to /contact/.
wp-content/themes/indigotree-theme-2025/templates/search.html
wp-content/themes/indigotree-theme-2025/templates/archive.html
wp-content/themes/indigotree-theme-2025/templates/home.html
wp-content/themes/indigotree-theme-2025/templates/single.html
wp-content/themes/indigotree-theme-2025/templates/index.html
wp-content/themes/indigotree-theme-2025/templates/page-home.html
wp-content/themes/indigotree-theme-2025/templates/page.html
wp-content/themes/indigotree-theme-2025/templates/404.html
Adds Gravity Forms button styling consistent with the site’s primary brand color.
  • Defines base styles for Gravity Forms submit/next/previous buttons (primary background, white text, 2px border, square corners).
  • Defines hover state to invert colors (transparent background, primary text and border).
wp-content/themes/indigotree-theme-2025/style.css

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've left some high level feedback:

  • In the header template, the top bar group (site-header__top) is now rendered empty—either remove this wrapper or restore its intended content to avoid unnecessary markup and potential layout confusion.
  • The main site identity in header.html is now a hard-coded link to a specific environment URL; consider replacing this with a site-logo or site-title block (or a home-relative URL) so it works correctly across environments.
  • In parts/footer.html, the second column heading (h-useful-links) is empty but still output with an ID—either provide meaningful text for accessibility/semantics or remove the heading element altogether.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- In the header template, the top bar group (`site-header__top`) is now rendered empty—either remove this wrapper or restore its intended content to avoid unnecessary markup and potential layout confusion.
- The main site identity in `header.html` is now a hard-coded link to a specific environment URL; consider replacing this with a `site-logo` or `site-title` block (or a home-relative URL) so it works correctly across environments.
- In `parts/footer.html`, the second column heading (`h-useful-links`) is empty but still output with an ID—either provide meaningful text for accessibility/semantics or remove the heading element altogether.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@yasminosten13
yasminosten13 requested a review from paulgibbs March 4, 2026 09:25

@dorota-testing dorota-testing left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all good

@yasminosten13
yasminosten13 merged commit f32510c into main Mar 4, 2026
5 checks passed
@paulgibbs
paulgibbs deleted the feature/updated-theme.json branch March 4, 2026 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants